package lq;

import java.util.Scanner;

public class lq2013 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int i,j,sum;
        while (in.hasNext()){
            int day = in.nextInt();
            sum=1;
            for (i=1;i<day;i++){
                sum=(sum+1)*2;
            }
            System.out.println(sum);
        }
    }
}
